package class10;

/**
 * 边描述
 *
 * 无向图可以直接理解为双向的有向图
 *
 */
public class Edge {
	//权重
	public int weight;
	//来着哪个点
	public Node from;
	//到达哪个点
	public Node to;

	public Edge(int weight, Node from, Node to) {
		this.weight = weight;
		this.from = from;
		this.to = to;
	}

}
